/*
 * Home.java
 *
 * Created on January 29, 2007, 11:11 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package ge.info.pages;

import ge.info.domain.StringString;
import ge.ktapestry.pages.BasePageExt;
import org.apache.tapestry.IRequestCycle;


import java.util.*;

public abstract class Weathers extends BasePageExt
{

    public static int SERVICE_ID = 12;

    public abstract Date getScDate();

    public abstract void setScDate(Date date);

    public abstract String getSccrit();

    public abstract void setSccrit(String s);

    public abstract List<TreeMap> getWMessages();

    public abstract void setWMessages(List<TreeMap> list);

    public abstract TreeMap getMessage();

    public abstract void setMessage(TreeMap message);

    public abstract StringString getStringString();

    public abstract void setStringString(StringString stringString);

    public void search(IRequestCycle cycle)
    {

        StringString stringString = new StringString();
        if (getScDate() != null)
        {
            stringString.setSdate(getScDate());
        }
        if (getSccrit() != null)
        {
            stringString.setStringOne(getSccrit());
        }
        this.setWMessages(getDbExecutor().getWMessages(stringString));

    }
}
